<template>
  <div class="page-department">
    <div class="component-mainHeader">
      <div class="top">
        <div class="topleft">
          <p>
            <span class="iconfont" style="color:#1abc9a;margin-right:3px;">&#xe607;</span>汇总信息
          </p>
        </div>
       <div class="topright">
          <el-button type="info" @click="$router.go(-1)">
            <span style="font-weight:700;margin-right:5px;" class="iconfont">&#xe606;</span>返回
          </el-button>
        </div>


      </div>
    </div>

    <div class="component-listHeader">
      <div class="search-header">
        <div class="left-title">
          <p class="left-text">
            <span class="iconfont">&#xe61e;</span>
            发文资料列表
          </p>
          <div class="right">
            <button @click="dataInit">编辑</button>
            <button @click="dataInit">保存</button>
          </div>
        </div>
      </div>
    </div>

    <div class="table">
      <el-table ref="multipleTable" :data="info" tooltip-effect="dark" style border>
        <el-table-column label="序号" align="center" width="200" prop="userName1"></el-table-column>
        <el-table-column label="镇区" align="center" width="200" prop="userName2"></el-table-column>
        <el-table-column label="小区名称" align="center" width="200" prop="userName3"></el-table-column>
        <el-table-column label="客户类型" align="center" width="200" prop="userName4"></el-table-column>
        <el-table-column label="监理" align="center" width="200" prop="userName5"></el-table-column>
        <el-table-column label="设计" align="center" width="200" prop="userName6"></el-table-column>

        <el-table-column label="集成" align="center" width="200" prop="userName7"></el-table-column>

        <el-table-column label="验收批次" align="center" width="200" prop="userName8"></el-table-column>

        <el-table-column label="项目编码" align="center" width="200" prop="userName9"></el-table-column>

        <el-table-column label="服开工单号" align="center" width="200" prop="userName10"></el-table-column>

        <el-table-column label="纤芯申请工单号" align="center" width="200" prop="userName11"></el-table-column>

        <el-table-column label="服开环节" align="center" width="200" prop="userName12"></el-table-column>
      </el-table>
    </div>
    <!-- 分页 -->
    <div class="component-paging" v-if="info.length > 0">
      <div class="table-bottom">
        <div class="bottom-left"></div>
        <div class="paging">
          <div class="paging-left">
            <p>
              共
              <span>{{Math.ceil(total/pageSize)}}</span> 页/
              <span>{{total}}</span> 条数据
            </p>
          </div>
          <el-pagination
            background
            @size-change="SizeChange($event,dataInit,currentPage,pageSize)"
            @current-change="CurrentChange($event,dataInit,currentPage,pageSize)"
            :current-page="currentPage"
            :page-sizes="[10, 20, 30]"
            :page-size="pageSize"
            layout="sizes, prev, pager, next, jumper"
            :total="total"
          ></el-pagination>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "infoSheet",
  data() {
    return {
      info: [
        {
          userName1: "1",
          userName2: "111111",
          userName3: "中国移动",
          userName4: "项目经理",
          userName5: "项目经理",
          userName6: "项目经理",
          userName7: "项目经理",
          userName8: "项目经理",
          userName9: "项目经理",
          userName10: "项目经理",
          userName11: "项目经理",
          userName12: "项目经理"
        },
        {
          userName1: "1",
          userName2: "111111",
          userName3: "中国移动",
          userName4: "项目经理",
          userName5: "项目经理",
          userName6: "项目经理",
          userName7: "项目经理",
          userName8: "项目经理",
          userName9: "项目经理",
          userName10: "项目经理",
          userName11: "项目经理",
          userName12: "项目经理"
        }
      ],

      formInline: {
        search: "",
        select: "",
        first: "",
        two: ""
      },
      limit: true,
      // 数据总条数
      total: 0,
      // 每页显示数据的条数
      pageSize: 10,
      // 当前显示的页面页码
      currentPage: 1
    };
  },
  created() {
    this.dataInit(this.currentPage, this.pageSize);
  },
  mounted() {},
  methods: {
    //获取数据列表、根据用户和部门查询
    dataInit(currentPage, pageSize, search) {},

    produce() {
      this.$router.push({
        name: "productData"
      });
    },
    // 查看详情
    seeInfo() {},
    // 编辑
    editInfo() {}
  }
};
</script>

<style scoped>
.component-mainHeader .top .topright {
  font-size: 24px;
}

.component-searchHeader .search-header {
  width: 1100px;
  box-sizing: border-box;
  border: 1px solid rgba(228, 228, 228, 1);
  background-color: rgba(255, 255, 255, 1);
  margin: 20px auto 0;
}

.component-searchHeader .search-header .left-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: rgba(243, 243, 243, 1);
  height: 45px;
  box-sizing: border-box;
}

.component-searchHeader .search-header .left-title .left-text {
  width: 20%;
  color: #666;
  font-family: "微软雅黑";
  font-weight: 400;
  font-size: 12px;
  line-height: 45px;
  text-align: left;
  margin: 0 0 0 30px;
}

.component-searchHeader .right {
  width: 200px;
  display: flex;
  justify-content: flex-end;
  margin-right: 30px;
}

.component-searchHeader .right button {
  width: 80px;
  padding: 0 15px;
  height: 30px;
  margin: 6px 5px;
  line-height: 30px;
  font-size: 12px;
  color: #666;
  background-color: #fff;
  border: 1px solid #ccc;
}

.component-searchHeader .right button:hover {
  background-color: #f3f3f3;
  cursor: pointer;
}

.component-listHeader .search-header {
  width: 1100px;
  box-sizing: border-box;
  border: 1px solid rgba(228, 228, 228, 1);
  background-color: rgba(255, 255, 255, 1);
  margin: 20px auto 0;
  border-bottom: 0;
}

.component-listHeader .search-header .left-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: rgba(243, 243, 243, 1);
  height: 45px;
  box-sizing: border-box;
}

.component-listHeader .search-header .left-title .left-text {
  width: 20%;
  color: #666;
  font-family: "微软雅黑";
  font-weight: 400;
  font-size: 12px;
  line-height: 45px;
  text-align: left;
  margin: 0 0 0 30px;
}

.component-listHeader .search-header .right {
  width: 300px;
  display: flex;
  justify-content: flex-end;
  margin-right: 10px;
}

.component-listHeader .search-header .right button {
  padding: 0 15px;
  height: 30px;
  width: 80px;
  margin: 6px 5px;
  line-height: 30px;
  font-size: 14px;
  color: #666;
  background-color: #fff;
  border: 1px solid #ccc;
}

.component-listHeader .search-header .right button:hover {
  background-color: #f3f3f3;
  cursor: pointer;
}

.component-listHeader .search-header .right .right-select-margin {
  margin-top: 6px;
  margin-right: 8px;
}

.table {
  width: 1100px;
  margin: 0 auto;
}

/* 下面都是修改饿了么ui的下拉框和按钮选中后的样式 */

.el-select .el-input.is-focus .el-input__inner,
.el-select .el-input__inner:focus {
  border-color: #e4e4e4;
}

.el-select-dropdown__item.selected {
  color: #666;
  font-weight: 400;
}

.el-select-dropdown {
  min-width: 100px !important;
  top: 50px !important;
  margin-left: 5px;
}
.el-select-dropdown__item {
  height: 26px;
  line-height: 26px;
}

.el-select .el-input__inner {
  width: 100px;
  padding: 0 8px;
  height: 30px;
  margin: 6px 5px;
}

.el-table .cell a {
  color: #1abc9a;
  text-decoration: none;
  cursor: pointer;
  margin-left: 5px;
}
</style>
